package com.eco.fanliapp.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eco.fanliapp.entity.AppUser;
import com.eco.fanliapp.entity.SyChannelUser;
import com.eco.fanliapp.vo.SyChannelUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 渠道用户对照表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-08-21
 */

public interface SyChannelUserMapper extends BaseMapper<SyChannelUser> {

	/**
	 * 渠道统计
	 * @param map
	 * @return
	 */
	//List<SyChannelUserVO> manageStatistical(Map<String,Object> map);

	/**
	 * 统计每个渠道下注册量
	 * @param map
	 * @return
	 */
	List<SyChannelUserVO> totalManageStatistical(Map<String,Object> map);

	/**
	 * 渠道统计详情
	 * @param channelId
	 * @return
	 */
	List<SyChannelUserVO> statisticalDetail(@Param("channelId") Long channelId);

	List<SyChannelUser> selectByUserId(Long userId);

	List<AppUser> handleDate(@Param("companyId")Integer companyId);

	List<AppUser> handleNotChannel(Integer companyId);
}
